import javax.json.bind.annotation.JsonbDateFormat;
import javax.json.bind.annotation.JsonbNumberFormat;
import javax.json.bind.annotation.JsonbProperty;
import javax.json.bind.annotation.JsonbTransient;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @author Sai
 * Created by Sai on 2019-03-15.
 *
 *
 * @JsonbProperty - 用于指定自定义字段名称
 * @JsonbTransient - 当我们想要在反序列化/序列化期间忽略该字段时
 * @JsonbDateFormat - 当我们想要定义日期的显示格式时
 * @JsonbNumberFormat - 用于指定数值的显示格式
 * @JsonbNillable - 用于启用空值的序列化
 */
@SuppressWarnings("unused")
public class person {

    // 为了使用jsonb,必须有一个空的默认构造方法
    public person() {

    }

    public person(String username, String name, String openid, String wx_openid,String group) {
        this.username =username ;
        this.name = name;
        this.openid = openid;
        this.wx_openid = wx_openid;
        this.group = group;
    }

    private int id;

    // 用户名
    @JsonbProperty("username")
    private String username;

    // 姓名
    @JsonbProperty("name")
    private String name;

    // 职位
    @JsonbProperty("group")
    private String group;

    // 身份
    @JsonbProperty("openid")
    private String  openid;

    // 部门
    @JsonbProperty("wx_openid")
    private String wx_openid;





    public String getusername() {
        return username;
    }

    public void setusername(String username) {
        this.username = username;
    }

    public String getname() {
        return name;
    }

    public void setname(String name) {
        this.name = name;
    }

    public String getgroup() {
        return group;
    }

    public void setgroup(String group) {
        this.group = group;
    }

    public String getopenid() {
        return openid;
    }

    public void setopenid(String openid) {
        this.openid = openid;
    }

    public String getwx_openid() {
        return wx_openid;
    }

    public void setwx_openid(String wx_openid) {
        this.wx_openid =wx_openid;
    }


}
